import request from '@/api/request'

export function httpPost(data, url, config = {}) {
  return request({
    url: url,
    method: 'post',
    data,
    config
  })
}

export function httpGet(params, url, config = {}) {
  return request({
    url: url,
    method: 'get',
    timeout: 10000,
    params,
    config
  })
}
